from django.conf.urls import url
from resources.views import *
from django.views.decorators.csrf import csrf_exempt

urlpatterns = [
    url('^idc/list/', IdcListView.as_view(), name='idc_list'),
    url('^idc/add/', IdcAddView.as_view(), name='idc_add'),
    url('^idc/update/', IdcUpdateView.as_view(), name='idc_update'),
    url('^idc/delete/', IdcDeleteView.as_view(), name='idc_delete'),
    url('^serveruser/list/', ServerUserListView.as_view(), name='serveruser_list'),
    url('^serveruser/add/', ServerUserAddView.as_view(), name='serveruser_add'),
    url('^serveruser/update/', ServerUserUpdateView.as_view(), name='serveruser_update'),
    url('^serveruser/delete/', ServerUserDeleteView.as_view(), name='serveruser_delete'),
    url('^server/list/', ServerListView.as_view(), name='server_list'),
    url('^server/data_api/', csrf_exempt(ServerDataApiView.as_view()))
]
